﻿@{
    Layout = null;
}
@model MODEL.LoginUser
<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en">
<!--<![endif]-->
<head>
    <meta charset="utf-8" />
    <title>登陆</title>
    <meta content="width=device-width, initial-scale=1.0" name="viewport" />
    <meta content="" name="description" />
    <meta content="" name="author" />
    @Styles.Render("~/media/layout/css")
    @Scripts.Render("~/media/layout/js") 
    <link rel="shortcut icon" href="~/media/image/favicon.ico" />  
    <script type="text/javascript">
        function Success(jsonData) {
            $.AjaxMsgData(jsonData, function () {
                if (window.top) {
                    window.top.location = jsonData.BackUrl;
                }
                else {
                    window.location = jsonData.BackUrl;
                }
            });
        }
    </script>
</head>
<body class="login">
    <div class="logo">
        <img src="~/media/image/ad.png" alt="/Home/Index" />
    </div>
    <div class="content">
        <h3 class="form-title">登陆你的账号</h3>
        @using (Ajax.BeginForm("Login", "Home", new AjaxOptions() { HttpMethod = "Post", OnSuccess = "Success" }))
        { 
            <div class="alert alert-error hide">
                <button class="close" data-dismiss="alert"></button>
                <span>请输入你的用户名与密码</span>
            </div>
            <div class="control-group">
                <label class="control-label visible-ie8 visible-ie9">用户名</label>
                <div class="controls">
                    <div class="input-icon left">
                        <i class="icon-user"></i>
                        @Html.BsTextBoxFor(s => s.LoginAccount, "Username", "m-wrap placeholder-no-fix")
                    </div>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label visible-ie8 visible-ie9">密 码</label>
                <div class="controls">
                    <div class="input-icon left">
                        <i class="icon-lock"></i>
                        @Html.BsTextBoxFor(s => s.LoginPassword, "Password", "m-wrap placeholder-no-fix", "password")
                    </div>
                </div>
            </div>
            <div class="form-actions">
                <label class="checkbox">
                    @Html.CheckBoxFor(s => s.Remember)
                    记住我
                </label>
                <button type="submit" class="btn green pull-right">
                    登陆 <i class="m-icon-swapright m-icon-white"></i>
                </button>
            </div>
        }
    </div>
    <div class="copyright">
        2014-@DateTime.Now.Year &copy; 深圳市达善科技有限公司
    </div>
    <!--[if lt IE 9]>
	<script src="media/js/excanvas.min.js"></script>
	<script src="media/js/respond.min.js"></script>  
	<![endif]-->
    <script>
        jQuery(document).ready(function () {
            App.init();
            Login.init();
        });
    </script>
    <script type="text/javascript">  var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-37564768-1']); _gaq.push(['_setDomainName', 'keenthemes.com']); _gaq.push(['_setAllowLinker', true]); _gaq.push(['_trackPageview']); (function () { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })();</script>
</body>
</html>
